]> dgit.raspbian.org Git - gnome-shell.git/commit
main: Introduce global workspaces adjustment
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 10 Aug 2023 19:49:19 +0000 (16:49 -0300)
committerMarge Bot <marge-bot@gnome.org>
Fri, 11 Aug 2023 16:51:13 +0000 (16:51 +0000)
commit4d963c432b932e24737e5991bfc405a0bac988c2
tree017283b72f0eaa21c8d6e4a58c2a106f3b1477ff
parent7e18b4d0b20eab6bef677832b96d33bcc540e19a
main: Introduce global workspaces adjustment

And a way to derive "sub"-adjustments from the main one.

The main and private StAdjustment properly represents
workspaces, and has all relevant properties (lower, upper,
and value) set by the workspace manager.

The main adjustment is not bound to any particular actor,
which means we cannot call the 'ease' method directly.

Consumers of this API should create adjustments using
Main.createWorkspacesAdjustment(), and this new adjustment
is bound to the actor that the consumer passed. Consumers
must not change any property of the derived adjustment other
than the 'value' property.

The 'value' property is synchronized between all adjustments
created, which guarantees that all elements that represent
workspaces can have a shared and up-to-date understanding of
where in the workspace layout we are.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2881>
js/ui/main.js